package com.ljx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljx.common.ResponseResult;
import com.ljx.domain.dto.AddArticleDto;
import com.ljx.domain.entity.Article;

import java.util.Map;

/**
 * @author 李捷禧
 * Date: 2023/4/18
 * ClassName: ArticleService
 */

public interface ArticleService extends IService<Article> {


    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult articleAll(Integer pageNum, Integer pageSize, String title, String summary);

    Map<String, Object> findCount(Long create_by, String startDate, String endDate);

}
